import request from "@/utils/request";
//获取SKU列表数据
export const getSKUAPI = (page: any, limit: any) => {
  return request.get<any, any>(`/admin/product/list/${page}/${limit}`);
};
//SKU下架/上架API
//下
export const cancelSKUAPI = (skuId: any) => {
  return request.get(`/admin/product/cancelSale/${skuId}`);
};
//上
export const onSKUAPI = (skuId: any) => {
  return request.get(`/admin/product/onSale/${skuId}`);
};
//查看SKU详情信息
export const getSKUContentAPI = (skuId: number) => {
  return request.get<any, any>(`/admin/product/getSkuById/${skuId}`);
};
//删除SKU数据
export const delSKUAPI = (skuId: number) => {
  return request.delete(`/admin/product/deleteSku/${skuId}`);
};
